from zvt.factors import GoldCrossFactor
from zvt.domain import Stock1dHfqKdata
entity_ids = ["stock_sz_000338"]
Stock1dHfqKdata.record_data(entity_ids=entity_ids, provider="em")
factor = GoldCrossFactor(entity_ids=entity_ids, provider="em", start_timestamp="2018-01-01")
print(factor.factor_df)
print(factor.result_df)
factor.draw(show=True)